/**
 * Boolean
 */
var isDone = false;
/**
 * Number
 */
var decLiteral = 6; //十进制
var hexLiteral = 0xf00d; //十六进制
var binaryLiteral = 10; //二进制
var octalLiteral = 484; //八进制
var bigLiteral = 100n;
/**
 * String
 */
var nameTo1 = "bob";
nameTo1 = "smith";
//模板字符串
var nameTo2 = "Gene";
var age = 37;
var sentence = "Hello, my name is ".concat(nameTo2, " , I'll be ").concat(age + 1, " years old next month");
/**
 * Array
 */
var list = [1, 2, 3, 4];
// 使用数组泛型,Attay<元素类型>
var listTo1 = [1, 2, 3, 4];
/**
 * Tuple
 * 元组中元素与类型一一对应
 */
var x; //声明元组
x = ["Hello", 23]; //初始化元组
/**
 * Enum 枚举
 */
var Color;
(function (Color) {
    Color[Color["Red"] = 0] = "Red";
    Color[Color["Green"] = 1] = "Green";
    Color[Color["Blue"] = 2] = "Blue";
})(Color || (Color = {}));
;
var c = Color.Green;
var ColorTo1;
(function (ColorTo1) {
    ColorTo1[ColorTo1["Red"] = 1] = "Red";
    ColorTo1[ColorTo1["Green"] = 2] = "Green";
    ColorTo1[ColorTo1["Blue"] = 4] = "Blue";
})(ColorTo1 || (ColorTo1 = {})); //手动添加编号
var colorName = ColorTo1[4];
console.log(colorName);
